﻿using System;
using System.Web;

namespace NWebMock
{
    public class HttpCacheVaryByParamsWrapper : IHttpCacheVaryByParams
    {
        #region Constructors

        public HttpCacheVaryByParamsWrapper(HttpCacheVaryByParams innerVaryByParams)
        {
            if (innerVaryByParams == null)
            {
                throw new ArgumentNullException("innerVaryByParams");
            }

            this.innerVaryByParams = innerVaryByParams;
        }

        #endregion

        #region Fields

        private HttpCacheVaryByParams innerVaryByParams = null;

        #endregion

        #region Properties

        public bool IgnoreParams { get { return this.innerVaryByParams.IgnoreParams; } set { this.innerVaryByParams.IgnoreParams = value; } }

        public bool this[string header] { get { return this.innerVaryByParams[header]; } set { this.innerVaryByParams[header] = value; } }

        #endregion
    }
}
